package org.smr.dev.service;

import org.smr.dev.dao.TableInfoDao;
import org.smr.dev.model.TableInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class TableInfoService {


    @Autowired
    private TableInfoDao tableInfoDao;

    @Transactional(readOnly = true)
    public List<TableInfo> findTable(){
        return tableInfoDao.findTable();
    }
}
